const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");
module.exports = {
  mode: "development",
  entry: "./src/app.js",
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "scripts/bundle.js",
    clean: true,
  },
  externalsType: "script",
  externals: {
    jquery: ["https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js", "$"],
  },
  plugins: [new HtmlWebpackPlugin()],
};
